package com.ruoyi.prediction.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预测数据对象 prediction
 * 
 * @author ruoyi
 * @date 2024-12-18
 */
public class Prediction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预测id */
    private String predictionId;

    /** 传感器位置 */
    @Excel(name = "传感器位置")
    private String sensorLocation;

    /** 传感器类型 */
    @Excel(name = "传感器类型")
    private String sensorType;

    /** 值 */
    @Excel(name = "值")
    private String sensorValue;

    /** 预测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预测时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date predictionTime;

    public void setPredictionId(String predictionId) 
    {
        this.predictionId = predictionId;
    }

    public String getPredictionId() 
    {
        return predictionId;
    }
    public void setSensorLocation(String sensorLocation) 
    {
        this.sensorLocation = sensorLocation;
    }

    public String getSensorLocation() 
    {
        return sensorLocation;
    }
    public void setSensorType(String sensorType) 
    {
        this.sensorType = sensorType;
    }

    public String getSensorType() 
    {
        return sensorType;
    }
    public void setSensorValue(String sensorValue) 
    {
        this.sensorValue = sensorValue;
    }

    public String getSensorValue() 
    {
        return sensorValue;
    }
    public void setPredictionTime(Date predictionTime) 
    {
        this.predictionTime = predictionTime;
    }

    public Date getPredictionTime() 
    {
        return predictionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("predictionId", getPredictionId())
            .append("sensorLocation", getSensorLocation())
            .append("sensorType", getSensorType())
            .append("sensorValue", getSensorValue())
            .append("predictionTime", getPredictionTime())
            .toString();
    }
}
